Skip to content

[MCH] add functionality and protections in mapping - #12913

Merged
pillot merged 1 commit into
AliceO2Group:devfrom
pillot:mapping
Mar 22, 2024
Merged

[MCH] add functionality and protections in mapping#12913
pillot merged 1 commit into
AliceO2Group:devfrom
pillot:mapping

Conversation

@pillot

@pillot pillot commented Mar 22, 2024

Copy link
Copy Markdown
Collaborator
  • add a function to loop over DE pad indices connected to a dual sampa.
  • speedup the retrieval of cathode pad indices connected to a dual sampa.
  • add protections in the conversions DsDetId <--> DsIndex

@pillot
pillot requested review from a team and shahor02 as code owners March 22, 2024 11:50
@github-actions

Copy link
Copy Markdown
Contributor

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass
async-2023-pp-apass1
async-2022-pp-apass6
async-2022-pp-apass4
async-mc
async-data

@lmassacr

Copy link
Copy Markdown
Contributor

Hi @pillot,
I looked at the PR and it is good for me to approve once you have fixed the whitespace issue in Segmentation.h
One question thought, do you really want to keep both:
std::vector getCatPadIndices(int dualSampaId) const;
and std::vector catPadIndices(int dualSampaId) const;
as as far as I understood, they return the same information but one is just faster than the other?
Cheers,
Laure

@pillot

pillot commented Mar 22, 2024

Copy link
Copy Markdown
Collaborator Author

Hi @lmassacr ,
catPadIndices(...) is the old function that I renamed and made private. It is used to fill the internal map of indices.
getCatPadIndices(...) is public and I changed it to return the indices stored in this map.
So there is only one visible function to get the indices, the fastest one, but both are needed.
Cheers,
Philippe

@lmassacr lmassacr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pillot,
Thanks for the clarification.
Cheers,
Laure

@pillot
pillot merged commit 71debbd into AliceO2Group:dev Mar 22, 2024
@pillot
pillot deleted the mapping branch April 1, 2024 10:37
andreasmolander pushed a commit to andreasmolander/AliceO2 that referenced this pull request Apr 12, 2024
andreasmolander pushed a commit to andreasmolander/AliceO2 that referenced this pull request Apr 12, 2024
mwinn2 pushed a commit to mwinn2/AliceO2 that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants